package com.jarvis.dubbo;

import com.jarvis.dubbo.service.IHelloService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 示例
 *
 * @author jarvis create by 2020/9/3
 */
public class SimpleConsumer {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext classPathXmlApplicationContext = new ClassPathXmlApplicationContext();
        classPathXmlApplicationContext.setConfigLocation("spring-context-consumer.xml");
        classPathXmlApplicationContext.refresh();
        System.out.println(classPathXmlApplicationContext.getBean(IHelloService.class).sayHello("jarvis"));
    }
}
